package com.wuage.interfaces.permission.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author Shynin
 * @version 1.0
 * @date 9/29/21 2:38 PM
 */
@Data
@ApiModel("角色权限")
public class RolePermissionVO {
    @ApiModelProperty("权限id")
    private Long id;

    @ApiModelProperty("权限类型")
    private String type;

    @ApiModelProperty("权限名字")
    private String menuName;

    @ApiModelProperty("查询角色是否拥有这个权限")
    private Boolean hasPermission = false;

    @ApiModelProperty("子权限")
    private List<RolePermissionVO> childPermission;
}
